/* 增强版问答面板样式 */

.enhanced-question-panel {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 热点信息栏 */
.hot-topic-info {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff6b6b10 0%, #ffd93d10 100%);
  border: 1px solid #ff6b6b30;
}

.hot-topic-info .topic-title {
  font-weight: 500;
  color: #333;
}

/* 进度条 */
.progress-bar {
  position: relative;
  margin-bottom: 24px;
}

.progress-text {
  position: absolute;
  right: 0;
  top: -24px;
  font-size: 14px;
  color: #666;
}

/* 内容区布局 */
.question-content-area {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.question-main {
  flex: 1;
  min-width: 0;
}

.hint-sidebar {
  width: 380px;
  position: sticky;
  top: 20px;
}

/* 问题卡片 */
.question-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.question-type {
  font-size: 16px;
  font-weight: 500;
  color: #1890ff;
}

.skipped-badge {
  padding: 2px 8px;
  background: #fff2e8;
  color: #fa8c16;
  border-radius: 4px;
  font-size: 12px;
}

.question-text {
  font-size: 18px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 16px;
  line-height: 1.6;
}

.question-explanation {
  padding: 12px;
  background: #f6f8fa;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #595959;
  line-height: 1.6;
}

.explanation-label {
  font-weight: 500;
  color: #333;
  margin-right: 4px;
}

.answer-input {
  margin-bottom: 20px;
}

.answer-input textarea {
  font-size: 15px;
  line-height: 1.8;
}

/* 智能提示卡片 */
.smart-hint-card {
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.hint-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.hint-content {
  font-size: 14px;
}

.hint-main {
  color: #595959;
  margin-bottom: 16px;
  line-height: 1.6;
  padding: 12px;
  background: #f6f8fa;
  border-radius: 6px;
}

.hint-examples {
  margin-bottom: 16px;
}

.hint-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.example-tag {
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 8px;
}

.example-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hint-tips {
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 13px;
  color: #595959;
  line-height: 1.5;
}

/* AI灵感助手卡片 */
.inspiration-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

/* 相关热点推荐 */
.related-topics-alert {
  margin-bottom: 20px;
}

.related-topics-alert .ant-alert-description {
  margin-top: 8px;
}

/* 操作按钮 */
.question-actions {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

/* 底部提示 */
.panel-tip {
  margin-top: 20px;
  padding: 12px;
  background: #f6f8fa;
  border-radius: 6px;
  font-size: 14px;
  color: #595959;
  text-align: center;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .question-content-area {
    flex-direction: column;
  }

  .hint-sidebar {
    width: 100%;
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .enhanced-question-panel {
    padding: 12px;
  }

  .question-text {
    font-size: 16px;
  }

  .question-actions .ant-space {
    flex-wrap: wrap;
  }

  .question-actions .ant-btn {
    margin-bottom: 8px;
  }

  .hint-sidebar {
    display: none;
  }

  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.smart-hint-card {
  animation: slideIn 0.3s ease;
}

.inspiration-card {
  animation: slideIn 0.3s ease 0.1s backwards;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .enhanced-question-panel {
    background: #1f1f1f;
  }

  .question-card,
  .smart-hint-card,
  .inspiration-card,
  .hot-topic-info {
    background: #2a2a2a;
    border-color: #434343;
  }

  .question-text,
  .hint-header,
  .hint-label {
    color: #e8e8e8;
  }

  .question-explanation,
  .hint-main,
  .panel-tip {
    background: #3a3a3a;
    color: #b8b8b8;
  }

  .hint-content,
  .tip-item {
    color: #b8b8b8;
  }

  .question-header,
  .hint-header,
  .hint-tips {
    border-color: #434343;
  }

  .hot-topic-info {
    background: linear-gradient(135deg, #ff6b6b20 0%, #ffd93d20 100%);
    border-color: #ff6b6b50;
  }
}

/* 加载状态 */
.enhanced-question-panel.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* 高亮效果 */
.hint-main::selection,
.tip-item::selection,
.question-text::selection {
  background: rgba(24, 144, 255, 0.2);
}

/* 滚动条美化 */
.answer-input textarea::-webkit-scrollbar,
.hint-sidebar::-webkit-scrollbar {
  width: 6px;
}

.answer-input textarea::-webkit-scrollbar-track,
.hint-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.answer-input textarea::-webkit-scrollbar-thumb,
.hint-sidebar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.answer-input textarea::-webkit-scrollbar-thumb:hover,
.hint-sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}